package com.gitee.hermer.engine.jars.core.eventbus.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;
import com.gitee.hermer.engine.jars.dependent.dsm.domain.EngineProperties;

@PropertySource(EngineConstant.ENGINE_CONFIG_PROPERTIES_CLASS_PATH)
@Component
public class EventBusProperties extends EngineProperties{

	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_EVENTBUS_MODEL_FACTORY)
	private String modelFactory;
	@Value(EngineConstant.PROPERTIES_KEY_ENGINE_CONFIG_EVENTBUS_EVENT_PREFIX)
	private String eventPrefix;
	
	
	public enum ModelFactory{
		ActiveMQEvent,SpringEvent
	}
	
	public String getModelFactory() {
		return modelFactory;
	}
	public void setModelFactory(String modelFactory) {
		this.modelFactory = modelFactory;
	}
	public String getEventPrefix() {
		return eventPrefix;
	}
	public void setEventPrefix(String eventPrefix) {
		this.eventPrefix = eventPrefix;
	}

}
